let arr: number[] = [1, 2, 23, 5, 2]

let arr2: boolean[] = [true, false]


//定义数组的普通类型
let arr3: Array<boolean> = [true, false]



//定义数组使用interface
interface X {
    name: string,
    age?: number
}

let arr4: X[] = [{ name: "111", age: 13 }, { name: "222" }]


//二维数组
let arr5: number[][] = [[1]]

let arr6: Array<Array<number>> = [[1]]

//大杂烩数组
let arr7: [number, string, boolean] = [1, 'aad', true]

let arr8: any = [1, 'aad', true]